openapi: 3.0.0
servers:
  - url: 'http://localhost:8080/Scada-LTS/api'
    description: 'Scada development Server'
    variables: {}
info:
  version: 2.7.6.1
  title: Scada-LTS API
  description: 'Scada-LTS OpenAPI Specification. Description contains only a SMS and Email new feature REST API'
  termsOfService: ''
  contact:
    name: 'Kamil Jarmusik - SoftQ Developer'
    email: 'kamil.jarmusik@softq.pl'
  license:
    name: 'GPL-2.0'
paths:
  /threads/:
    get:
      tags:
        - ThreadInfoAPI
      description: 'Get all threads'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
  /threads/metrics/:
    get:
      tags:
        - ThreadInfoAPI
      description: 'Get metrics threads'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
  /threads/stack/:
    get:
      tags:
        - ThreadInfoAPI
      description: 'Get all stacks from threads'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
  /threads/names/:
    get:
      tags:
        - ThreadInfoAPI
      description: 'Get all thread names'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
  /threads/classes/:
    get:
      tags:
        - ThreadInfoAPI
      description: 'Get all thread classes'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
  /threads/group-by/classes/:
    get:
      tags:
        - ThreadInfoAPI
      description: 'Group threads by thread'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
  /threads/group-by/classes/count/:
    get:
      tags:
        - ThreadInfoAPI
      description: 'Group threads count by thread'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
  /threads/group-by/stack/:
    get:
      tags:
        - ThreadInfoAPI
      description: 'Group threads by stack'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
  /threads/group-by/stack/classes/:
    get:
      tags:
        - ThreadInfoAPI
      description: 'Group threads by stack then classes'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
  /threads/group-by/stack/count/:
    get:
      tags:
        - ThreadInfoAPI
      description: 'Group threads by stack then count'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
  /threads/group-by/stack/names/:
    get:
      tags:
        - ThreadInfoAPI
      description: 'Group threads by stack then names'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
  /threads/group-by/states/:
    get:
      tags:
        - StateThreadInfoAPI
      description: 'Group threads by state'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
  /threads/group-by/states/classes/:
    get:
      tags:
        - StateThreadInfoAPI
      description: 'Group thread classes by state'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
  /threads/group-by/states/count/:
    get:
      tags:
        - StateThreadInfoAPI
      description: 'Group threads count by state'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
  /threads/group-by/states/names/:
    get:
      tags:
        - StateThreadInfoAPI
      description: 'Group thread namew by state'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
  /threads/states/:
    get:
      tags:
        - StateThreadInfoAPI
      description: 'Get all states'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
  /threads/states/{state}/:
    get:
      tags:
        - StateThreadInfoAPI
      description: 'Get threads for state'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
      parameters:
        - name: 'state'
          in: 'path'
          required: true
          schema:
            type: 'string'
            enum: [NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING, TERMINATED]
  /threads/states/{state}/metrics/:
    get:
      tags:
        - StateThreadInfoAPI
      description: 'Get metrics threads for state'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
      parameters:
        - name: 'state'
          in: 'path'
          required: true
          schema:
            type: 'string'
            enum: [NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING, TERMINATED]
  /threads/states/{state}/classes/:
    get:
      tags:
        - StateThreadInfoAPI
      description: 'Get threads class for state'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
      parameters:
        - name: 'state'
          in: 'path'
          required: true
          schema:
            type: 'string'
            enum: [NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING, TERMINATED]
  /threads/states/{state}/names/:
    get:
      tags:
        - StateThreadInfoAPI
      description: 'Get threads name for state'
      responses:
        '200':
          description: 'Get successful'
          headers: { }
      parameters:
        - name: 'state'
          in: 'path'
          required: true
          schema:
            type: 'string'
            enum: [NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING, TERMINATED]
